package com.bw.kf.all2211a.adapter

import com.bw.kf.all2211a.R
import com.bw.kf.all2211a.user.GlideUser
import com.bw.kf.mvvm.entity.Goodsitem
import com.bw.kf.mvvm.entity.ProductEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class ProductAdapter: BaseQuickAdapter<Goodsitem, BaseViewHolder>(R.layout.item_product) {
    override fun convert(holder: BaseViewHolder, item: Goodsitem) {
             GlideUser.loadImage(context,holder.getView(R.id.pro_iv),item.image)
        holder.setText(R.id.pro_mess,item.storeName)
        holder.setText(R.id.pro_money,item.price+"￥")
        holder.setText(R.id.pro_money2,"市场价："+item.otPrice+"￥")
    }
}